﻿using System.Web.Mvc;
using Controller2.BLL;

namespace Controller2.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var nomeEmpresa = EmpresaBll.GetNomeEmpresa();
            if (string.IsNullOrWhiteSpace(nomeEmpresa))
            {
                return RedirectToAction("Index", "Empresa");
            }
            return View();
        }

        public ActionResult Sobre()
        {
            return View();
        }
    }
}
